const Router = require('koa-router')
const RptController = require('../../controllers/rpt.admin')
const m = require('../../middlewares/admin_auth')
const router = new Router({ prefix: '/admin/api/v1/rpt' })

// Admin
// 获取
router.get('/admin/getList', m.auth,RptController.getEnterData);

// 获取异常设备数据
router.get("/admin/abnormal/equipment", m.auth, RptController.getAbnormalEquData)

router.get("/equ/info/:id", m.auth, RptController.getEquInfoById)

router.get("/equ/tree/list", m.auth, RptController.getEquTreeData)

router.get("/equ/log/list", m.auth, RptController.getEquLogListByCabId)

router.get("/equ/status/count", m.auth, RptController.getEquStatusCount)

module.exports = router

